package org.example.liuy.exception;

/**
 * 简单实现的业务异常类
 */
public class BusinessException extends RuntimeException {
    private final int statusCode;

    /**
     * 参数错误
     */
    public final static int PARAM_ERROE = 600;

    public final static int SESSION_ERROE = 403;

    /**
     * 系统访问限制
     */
    public final static int SYSTEM_MAXLIMIT = 999;


    public BusinessException(int statusCode, String message) {
        super(message);
        this.statusCode = statusCode;
    }

    public int getStatusCode() {
        return statusCode;
    }
}